<table width="727" border="0" cellspacing="0" cellpadding="0">
	<tr valign="top"> 
	<?php
		$Qitem = "SELECT * from item ORDER BY RAND() limit 0,3";
		$Citem= $db->sql_total($Qitem);
		$Ritem = $db->sql_fetch($Qitem);
		if($Citem <> 0){
		foreach($Ritem as $i){
	?>
		<td height="339">
			<div id="productsboxfront"> 
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr> 
						<td width="10" height="10"></td>
						<td height="10"></td>
						<td width="10" height="10"></td>
					</tr>
					<tr> 
						<td width="10">&nbsp;</td>
						<td align="left" valign="top">
							 
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr> 
									<td align="center" class="arial11P"><strong><?php echo $i['name'] ?></strong></td>
								</tr>
								<tr> 
									<td height="6" align="center" valign="top"><img src="img/spec_blank.gif" width="10" height="6"></td>
								</tr>
								<tr> 
								<td align="center" class="arial10G660">KOD <?php echo $i['kod'] ?></td>
								</tr>
								<tr>
									<td height="10" align="center" valign="top" class="arial10G660"><img src="img/spec_blank.gif" width="10" height="10"></td>
								</tr>
								<tr> 
									<td align="center"> 
										<div id="productsimg"> 
										<img src="<?php echo IMAGEITEM.$i['image'] ?>" name="productimg" width="174" height="136" id="productimg" ></div></td>
								</tr>
								<tr> 
									<td height="10" align="center" valign="top"><img src="img/spec_blank.gif" width="10" height="10"></td>
								</tr>
								<tr> 
									<td align="center" class="arial11P"><?php echo word_split($i['description'],20); ?></td>
								</tr>
								<tr> 
									<td height="10" align="center" valign="top"><img src="img/spec_blank.gif" width="10" height="10"></td>
								</tr>
								<tr> 
									<td align="center" class="arial13CK">RP(WM) 
										<strong>RM <?php if($_SESSION['isAhli'] == 'yes' ){ echo sprintf("%01.2f",$i['price_wm_ahli']); }else{ echo sprintf("%01.2f",$i['price_wm']); } ?></strong><br>
										RP(EM) <strong>RM <?php if($_SESSION['isAhli'] == 'yes' ){ echo sprintf("%01.2f",$i['price_em_ahli']); }else{ echo sprintf("%01.2f",$i['price_em']); }  ?></strong></td>
								</tr>
								<tr> 
									<td height="10" align="center" valign="top"><img src="img/spec_blank.gif" width="10" height="10"></td>
								</tr>
								<tr> 
									<td align="center">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr> 
											  <td align="right"><a href="index.php?action=add&id=<?php echo $i['id'] ?>"><img src="img/btn_cart.jpg" width="64" height="20" border="0"></a></td>
											  <td width="6">&nbsp;</td>
											  <td><a href="product_detail.php?id=<?php echo $i['id'] ?>"><img src="img/btn_view.jpg" width="62" height="20" border="0"></a></td>
											</tr>
										</table>
									</td>
								</tr>
							</table></td>
						<td width="10">&nbsp;</td>
					</tr>
				</table>
			</div>
		<?php
		}
		}
		?>
		</td>
	
	</tr>
</table>